/**
 * Mutations业务层数据提交
 */
 import storage from './../utils/storage'

 export default{
    saveUserInfo(state,userInfo){
         state.userInfo = userInfo;
         storage.setItem('userInfo',userInfo)
     },
    savePermissions(state,permissions){
         state.permissions = permissions;
         storage.setItem('permissions',permissions)
     },
    saveToken(state,token){
         state.token = token;
         storage.setItem('token',token)
     }
 }